import request from '@/utils/request-qygly'
// 获取登录页面验证码
export const getCode = (data) => {
  return request({
    url: 'qygly-login/genValidationCodeImg',
    method: 'GET',
    params: data,
    responseType: 'blob', //选择接收方式为blob
  })
}

// 登录
export const loginApi = (data) => {
  return request({
    url: '/qygly-login/login',
    method: 'POST',
    data,
  })
}

// 获取用户菜单
export const getMenuList = (data) => {
  return request({
    url: '/qygly-dict/getMenuInfoList',
    method: 'POST',
    data,
  })
}
